Xbasic

A5_OS_INFO Function

Syntax

OS_Information as P = a5_os_info([C computer ])

Arguments

OS_Information

Information about the computer and the Windows configuration.

computer

Optional. Default = "". The name of a computer.

Description

Returns a pointer with information about the local operating system

Discussion

The A5_OS_INFO() function returns information about the operating system. For complete details on all of the values and what each represents, see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_operatingsystem.asp. This function does not work with Windows 98 and Windows ME.

Example

? a5_os_info()
=
BootDevice = "\Device\HarddiskVolume1"
BuildNumber = "2600"
BuildType = "Multiprocessor Free"
Caption = "Microsoft Windows XP Professional"
CodeSet = "1252"
CountryCode = "1"
CreationClassName = "Win32_OperatingSystem"
CSCreationClassName = "Win32_ComputerSystem"
CSDVersion = "Service Pack 1"
...
? a5_os_info("custserv02") 
= 
BootDevice = "\Device\Harddisk0\Partition1" 
BuildNumber = "2275" 
BuildType = "Uniprocessor Free" 
Caption = "Microsoft Windows 2000 Professional" 
CodeSet = "1252" 
CountryCode = "1" 
CreationClassName = "Win32_OperatingSystem" 
CSCreationClassName = "Win32_ComputerSystem" 
CSDVersion = "Service Pack 4" 

...

Limitations

Desktop applications only.

See Also